import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';

class YBMineSectionPge extends StatelessWidget {
  final String imageStr;
  final String titleStr;
  final String subTitleStr;

  const YBMineSectionPge({Key key, this.imageStr, this.titleStr, this.subTitleStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: YBTextStyle.adapterSize58,
      child: Column(
        children: [
          Expanded(
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.stretch,
              children: [
                Container(
                  child: Image.asset(YBImageStyle.getImagePath(imageStr),height: YBTextStyle.adapterSize30,width: YBTextStyle.adapterSize30,),
                ),
                Container(
                  width: YBTextStyle.adapterSize10,
                ),
                Container(
                    alignment: Alignment.centerLeft,
                    child: Text(titleStr,style: YBTextStyle.findFaXiantText,)
                ),
                Spacer(),
                Container(
                  alignment: Alignment.centerRight,
                  child: Text(subTitleStr??"",style: YBTextStyle.mineSubTitleText,),
                ),
                Container(
                  width: YBTextStyle.adapterSize8,
                ),
                Container(
                  child: Image.asset(YBImageStyle.getImagePath("findIconArrowRight"),width: YBTextStyle.adapterSize6,height: YBTextStyle.adapterSize10,),
                ),
              ],
            ),
          ),
          Container(
            child: Padding(
              padding: EdgeInsets.only(left: 0.0),
              child:Container(
                 height: 1,
                 color: YBColor.commonBackGroundColor,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
